package io.gitee.yxsnake.framework.system.api;

import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClient;
import io.gitee.yxsnake.framework.core.domain.Result;
import io.gitee.yxsnake.framework.system.api.domain.vo.RemoteDictDataVo;
import retrofit2.http.GET;
import retrofit2.http.Query;

import java.util.List;

/**
 * @author snake
 * @description 字典服务
 * @since 2024/11/2 23:05
 */
@RetrofitClient(baseUrl = "${retrofit.pisces-system-server:http://pisces-system-server:21001/}")
public interface RemoteDictService {

    /**
     * 根据字典类型查询字典数据
     *
     * @param dictType 字典类型
     * @return 字典数据集合信息
     */
    @GET(value = "inner/dict/selectDictDataByType")
    Result<List<RemoteDictDataVo>> selectDictDataByType(@Query("dictType") String dictType);

}
